const child_process = require("child_process");

for(var i=0;i < 3;i++){
    child_process.exec("node exec-child.js " + i,(err,stdout,stderr) => {
        if (err) {
            console.log(err)
        } else {
            console.log(typeof stdout);
            console.log(typeof stderr);
        }
    })
}